QT       += core gui

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets network

CONFIG += c++17
CONFIG += console

# You can make your code fail to compile if it uses deprecated APIs.
# In order to do so, uncomment the following line.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0

SOURCES += \
    app.cpp \
    close_confirm_dlg.cpp \
    event_widget.cpp \
    left_widget.cpp \
    live_push_window.cpp \
    login_dlg.cpp \
    main.cpp \
    main_window.cpp \
    my_line_edit.cpp \
    my_line_edit2.cpp \
    my_push_button.cpp \
    net_image_label.cpp \
    net_image_label2.cpp \
    play_item.cpp \
    recommand_panel.cpp

HEADERS += \
    app.h \
    close_confirm_dlg.h \
    display-helpers.hpp \
    event_widget.h \
    left_widget.h \
    live_push_window.h \
    login_dlg.h \
    main_window.h \
    my_line_edit.h \
    my_line_edit2.h \
    my_push_button.h \
    net_image_label.h \
    net_image_label2.h \
    play_item.h \
    qrcode/libqrencode/qrencode.h \
    recommand_panel.h

TRANSLATIONS += \
    bilibili_zh_CN.ts
CONFIG += lrelease
CONFIG += embed_translations

# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target


DISTFILES += \
    res/images/icon.png

RESOURCES += \
    res.qrc
